const mongoose = require('mongoose')

const accountType = new mongoose.Schema({
    title:{
        type: String,
        required:true
    },
    time:{
        type: String,
        required:true
    },
    type:{
        type:String,
        required:true,
        default:'1'
    },
    money:{
        type: String,
        required:true
    },
    remark:String
})

const accountModel = mongoose.model('accounts',accountType)

module.exports = accountModel